﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using Web.Codes;

namespace Web.Admin
{
    public partial class PostMonthlyPayroll : BasePage
    {        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                for (int i = 0; i < 12; i++)
                {
                    PayrollMonthCombo.Items.Add( new ListItem
                    {
                        Value = (i + 1).ToString(),
                        Text = CultureInfo.CurrentCulture.DateTimeFormat.MonthNames[i]
                    });
                }

                for (int i = DateTime.Now.Year; i <= DateTime.Now.Year + 5; i++)
                {
                    PayrollYearcmbox.Items.Add(new ListItem 
                    { 
                        Value= i.ToString(),
                        Text = i.ToString()
                    });
                }

            }
        }
    }
}